﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.AutoUpdate.Service.Interfaces
{
    public interface IUpdateService
    {
        /// <summary>
        /// 升级
        /// </summary>
        /// <param name="packagePath"></param>
        /// <returns></returns>
        void DoUpdate(string packagePath);
        /// <summary>
        /// 下载
        /// </summary>
        /// <param name="packageUrl"></param>
        /// <param name="version"></param>
        /// <returns></returns>
        Task<string> DownloadPackageAsync(string packageUrl,Version version);
    }
}
